package esempio.clientsample;

import esempio.*;
import javax.xml.ws.BindingProvider; 

public class ClientSample {

	public static void main(String[] args) {
	        System.out.println("***********************");
	        System.out.println("Create Web Service Client...");
	        Arithmetic_0020Operations service1 = new Arithmetic_0020Operations();
	        System.out.println("Create Web Service...");
	        Operations port1 = service1.getOperationsPort();
	        System.out.println("Call Web Service Operation...");
	        ((BindingProvider)port1).getRequestContext().put(BindingProvider.SESSION_MAINTAIN_PROPERTY,
	        		 true);
	       for(int i=0;i<100;i++){
	       System.out.println("Server said: " + port1.substraction(i,"luca.bianchi@gmail.com","lucaBianchi",3,4));
	       System.out.println("Server said: " + port1.addition(i,"luca.bianchi@gmail.com","lucaBianchi",3,4));
	        //Please input the parameters instead of 'null' for the upper method!
	       }

	
	        System.out.println("***********************");
	        System.out.println("Call Over!");
	}
}
